package com.glela.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.glela.dao.AdConfigDao;
import com.glela.platform.mapper.AdConfigMapper;
import com.glela.platform.model.AdConfig;

import tk.mybatis.mapper.util.StringUtil;

/**
 * 
 * @author liujie
 * 2016年3月30日
 */
@Repository
public class AdConfigDaoImpl implements AdConfigDao{

	@Autowired
	private AdConfigMapper adConfigMapper;
	
	@Override
	public AdConfig selectByAdNo(String adNo) {
		if(StringUtil.isEmpty(adNo)){
			return null;
		}
		return adConfigMapper.selectByAdNo(adNo);
	}

	@Override
	public List<AdConfig> selectAll() {
		return adConfigMapper.selectAll();
	}
	
	
}
